using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;

namespace SpoonCore.Crypt
{
	public class RSACrypt : ICrypt
	{
		private RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(1024);

		public RSACrypt()
		{
			RSAParameters param = rsa.ExportParameters(true);
		}

		public byte[] Encrypt(byte[] data)
		{
			return rsa.Encrypt(data, false);
		}

		public byte[] Decrypt(byte[] data)
		{
			return rsa.Decrypt(data, false);
		}
	}
}